<template>
  <div class="">
    <div class="top-nav">
      <div :class="navId == 1 ? 'active' : ''" @click="tabNav((id = 1))">
        我的点赞
      </div>
      <div :class="navId == 2 ? 'active' : ''" @click="tabNav((id = 2))">
        我的收藏
      </div>
      <div :class="navId == 3 ? 'active' : ''" @click="tabNav((id = 3))">
        我的评论
      </div>
      <div :class="navId == 4 ? 'active' : ''" @click="tabNav((id = 4))">
        质疑投诉
      </div>
    </div>
    <div class="like" v-if="navId == 1">
      <div class="like-item" v-for="item in 4" :key="item">
        <div class="tit">点赞的内容标题</div>
        <div class="word">
          此处为点赞的内容此处为点赞的内容此处为点赞的内容此处为点赞的内容此处为点赞的内容此
          处为点赞的内容此处为点赞的内容此处为点赞的内容此处为点赞的内容此处为点赞的内容此处为点赞的内容…
        </div>
        <div class="unlike">取消点赞</div>
      </div>
      <div class="more">点击查看更多</div>
    </div>
    <div class="collect" v-if="navId == 2">
      <div class="like-item" v-for="item in 4" :key="item">
        <div class="tit">收藏的内容标题</div>
        <div class="word">
          此处为收藏的内容此处为收藏的内容此处为收藏的内容此处为点赞的内容此处为点赞的内容此
          处为收藏的内容此处为收藏的内容此处为收藏的内容此处为点赞的内容此处为点赞的内容此处为收藏的内容…
        </div>
        <div class="unlike">取消收藏</div>
      </div>
      <div class="more">点击查看更多</div>
    </div>
    <div class="comment" v-if="navId == 3">
      <div class="comment-item" v-for="item in 3" :key="item">
        <div class="avatar"><img src="@/assets/imgs/asarts.png" alt="" /></div>
        <div class="center">
          <div class="tit">
            <div class="">系统消息</div>
            <div class=""><img src="@/assets/imgs/del.png" alt="" /></div>
          </div>
          <div class="comit">真辛苦</div>
          <div class="word">
            <div class="">评论的条令条例标题</div>
            <div class="">
              此处为条令条例内容简介展示位置，此文字为占位符此处为条令条例内容简介展示位置，此文字为占位符此处为条..
            </div>
          </div>
          <div class="time">2021.10.14</div>
        </div>
      </div>
      <div class="more">点击查看更多</div>
    </div>
    <div class="complaint" v-if="navId == 4">
      <div class="comment-item" v-for="item in 3" :key="item">
        <div class="center">
          <div class="tit">
            <div class="">质疑投诉处理中心</div>
            <div class=""><img src="@/assets/imgs/del.png" alt="" /></div>
          </div>
          <div class="comit">
            收到的回复内容展示位置收到的回复内容展示位置收到的回复内容展示位置
          </div>
          <div class="word">
            你提出的质疑投诉展示位置你提出的质疑投诉展示位置你提出的质疑投诉展示位置你提出的质疑投诉展示位置
          </div>
          <div class="bom">
            <div class="time">2021.10.14</div>
            <div class="uncom">取消质疑投诉</div>
          </div>
        </div>
      </div>
      <div class="more">点击查看更多</div>
    </div>
  </div>
</template>

<script>
export default {
  name: "",
  components: {},
  data() {
    return { navId: 1 };
  },

  methods: {
    tabNav(id) {
      this.navId = id;
    }
  }
};
</script>

<style lang="scss" scoped>
.top-nav {
  height: 55px;
  display: flex;
  border-bottom: 1px solid #eaeaea;
  color: #666666;
  font-size: 18px;
  line-height: 55px;
  div {
    width: 230px;
    text-align: center;
    cursor: pointer;
  }
  .active {
    border-bottom: 5px solid #b21315;
  }
}
.more {
  width: 420px;
  height: 44px;
  background-color: #e4e4e4;
  border-radius: 5px;
  color: #666666;
  font-size: 18px;
  text-align: center;
  line-height: 44px;
  margin: 30px auto 0;
}
.like {
  padding: 50px 0 0 40px;
  .like-item {
    margin-right: 200px;
    border-bottom: 1px dashed #d1d1d1;
    .tit {
      font-weight: 700;
      color: #333333;
      font-size: 20px;
      margin-top: 15px;
    }
    .word {
      color: #666666;
      font-size: 16px;
      line-height: 26px;
      margin-top: 10px;
    }
    .unlike {
      color: #999999;
      font-size: 16px;
      text-align: right;
      cursor: pointer;
      margin-bottom: 10px;
    }
  }
}
.collect {
  padding: 50px 0 0 40px;
  .like-item {
    margin-right: 200px;
    border-bottom: 1px dashed #d1d1d1;
    .tit {
      font-weight: 700;
      color: #333333;
      font-size: 20px;
      margin-top: 15px;
    }
    .word {
      color: #666666;
      font-size: 16px;
      line-height: 26px;
      margin-top: 10px;
    }
    .unlike {
      color: #999999;
      font-size: 16px;
      text-align: right;
      cursor: pointer;
      margin-bottom: 10px;
    }
  }
}
.comment {
  padding: 50px 0 0 60px;
  .comment-item {
    display: flex;
    margin-right: 200px;
    margin-bottom: 15px;
    .avatar {
      img {
        width: 24px;
        height: 24px;
        margin-top: 5px;
      }
      margin-right: 5px;
    }
    .center {
      border-bottom: 1px dashed #d1d1d1;
      .comit {
        color: #333333;
        font-size: 18px;
        margin-top: 10px;
        margin-bottom: 20px;
      }
      .tit {
        display: flex;
        justify-content: space-between;
      }
      .tit > div:nth-child(1) {
        color: #666666;
        font-size: 24px;
      }
      .tit > div:nth-child(2) {
        cursor: pointer;
        width: 20px;
        height: 20px;
      }
      .word {
        width: 991px;
        height: 91px;
        background-color: #f4f4f4;
        border-radius: 5px;
        padding: 15px 0 0 30px;
        margin-left: 140px;
      }
      .word > div:nth-child(1) {
        font-weight: 700;
        color: #999999;
        font-size: 20px;
      }
      .word > div:nth-child(2) {
        color: #999999;
        font-size: 16px;
        margin-top: 10px;
      }
      .time {
        text-align: right;
        color: #999999;
        font-size: 16px;
        margin-top: 15px;
        margin-bottom: 10px;
      }
    }
  }
}
.complaint {
  padding: 50px 0 0 60px;
  .comment-item {
    margin-right: 200px;
    margin-bottom: 15px;
    .center {
      border-bottom: 1px dashed #d1d1d1;
      .comit {
        color: #333333;
        font-size: 18px;
        margin-top: 10px;
        margin-bottom: 20px;
      }
      .tit {
        display: flex;
        justify-content: space-between;
      }
      .tit > div:nth-child(1) {
        color: #666666;
        font-size: 24px;
      }
      .tit > div:nth-child(2) {
        width: 20px;
        height: 20px;
        cursor: pointer;
      }
      .word {
        color: #999999;
        font-size: 16px;
        background-color: #f4f4f4;
        border-radius: 5px;
        padding: 20px 0 20px 30px;
        margin-left: 80px;
      }
      .bom {
        display: flex;
        justify-content: space-between;
        color: #999999;
        font-size: 16px;
        margin-top: 15px;
        margin-bottom: 5px;
        cursor: pointer;
      }
    }
  }
}
</style>
